import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const routes = [
  {
    path:'',
    redirect:'/home'
  },
  {
    path:'/home',
    component:()=>import('@/views/home/home')
  },
  {
    path:'/message',
    component:()=>import('@/views/message/message')
  },
  {
    path:'/shopping',
    component:()=>import('@/views/shopping/shopping')
  },
  {
    path:'/me',
    component:()=>import('@/views/me/me')
  },
]

const router = new VueRouter({
  routes,
  mode: "history"
});

export default router;